package com.zzyl.nursing.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 添加老人请求DTO
 */
@Data
@ApiModel(value = "AddElderRequestDto", description = "添加老人请求DTO")
public class AddElderRequestDto {

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号", required = true)
    @NotBlank(message = "身份证号不能为空")
    private String idCard;

    /**
     * 老人姓名
     */
    @ApiModelProperty(value = "老人姓名", required = true)
    @NotBlank(message = "老人姓名不能为空")
    private String name;

    /**
     * 称呼/备注
     */
    @ApiModelProperty(value = "称呼/备注")
    private String remark;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;
} 